import App from './App'
import Vue from 'vue'
import store from './store/index'
import uView from "uview-ui";
Vue.use(uView);

import tabBar from 'components/tabBar.vue'
Vue.component('tab-bar',tabBar)

Vue.prototype.$store=store;

Vue.prototype.$toast = (msg, duration = 2000) => {
  uni.showToast({
    icon: 'none',
    title: msg,
    duration,
  }); 
}

Vue.prototype.$showLoading = (msg = '加载中') => {
  uni.showLoading({
    title: msg
  });
}

Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
    ...App
})
app.$mount()

